Propagate guest MSR writes to machine MSRs immediately
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 21 Jul 2005 13:59:08 +0000 (13:59 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 21 Jul 2005 13:59:08 +0000 (13:59 +0000)
commit88490a29fe5aae0bf60864afd3807e5e8a67f88f
tree0bde50b98c262a196f4555dba0a03a991c354ba3
parenta63fbe2fb406996cc52226cfbc667564fecfb00d
Propagate guest MSR writes to machine MSRs immediately

Right now, we have an exposure between the time the MSR is written
and used by an instruction such as syscall. If there is a context
switch and we do vmx_do_restore_msrs(), everything goes fine. But
if we don't, then we execute the syscall with the wrong MSR.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
xen/arch/x86/vmx.c